package indi.mozping.memlea;

import java.lang.String;
import java.util.ArrayList;

/**
 * @author by mozping
 * @Classname MemLeak
 * @Description TODO
 * @Date 2019/8/27 16:43
 */
public class MemLeak {

    private static final int SIZE = 1024 * 1024;

    public static void main(String[] args) throws InterruptedException {
        ArrayList list = new ArrayList();
        Integer count = 0;
        Thread.sleep(30000);

        System.out.print("start");
        while (true) {
            Thread.sleep(1000);
            list.add(new int[SIZE]);
        }

    }

}